<div class="picture_block">
    {% if user.is_authenticated and user.is_active and user == album.owner %}
    <a href="{% url remove_picture page.album.id page.id picture.id %}">Remove picture</a>
    {% endif %}
    <img src="{{picture.uri}}" alt="{{picture.description}}" />
    <p>{{picture.get_caption}}</p>
</div>